{extend name="template/base"/}
{block name="content"}
<div class="items-wrap b_980 cf">
    <div class="items-l fl">
        <ul class="items-list cf">
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=女装'}">
                    <i class="it-i1"></i>
                    女装
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=男装'}">
                    <i class="it-i2"></i>
                    男装
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=母婴'}">
                    <i class="it-i3"></i>
                    母婴
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=美食'}">
                    <i class="it-i4"></i>
                    美食
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=美妆'}">
                    <i class="it-i5"></i>
                    美妆
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=鞋包'}">
                    <i class="it-i6"></i>
                    鞋包
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=数码'}">
                    <i class="it-i7"></i>
                    数码
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=家居'}">
                    <i class="it-i8"></i>
                    家居
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=文体'}">
                    <i class="it-i9"></i>
                    文体
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=配饰'}">
                    <i class="it-i10"></i>
                    配饰
                </a>
            </li>
            <li>
                <a href="{:\\think\\Url::build('Cate/index').'?keyword=中老年'}">
                    <i class="it-i11"></i>
                    中老年
                </a>
            </li>
        </ul>
    </div>

    <div class="items-center fl">
        <div class="item-scroll">
            <ul class="item-img" id="item-img">
                {volist name="banners" id="vo"}
                <li class="li1" style="position: absolute; left: 0; top: 0; z-index: 1; display: block;">
                    <a target="{$vo.target?'_blank':''}" href="{$vo.link}">
                        <img title="{$vo.title}" src="{$vo.pic}">
                    </a>
                </li>
                {/volist}
            </ul>
            <div class="item-btn" id="item-btn"></div>
        </div>
    </div>

    <div class="items-r fr">
        <a target="_blank" href="http://www.1zhe.com/apps.php"></a>
        <!--<a target="_blank" class="items-dload" href="http://www.1zhe.com/apps.php"></a><img src="https://static.1zhe.com/static/home/images/item-ewm.jpg" />-->
        <a target="_blank" class="items-dload" href="http://www.1zhe.com/apps.php"></a><img
            src="__IMG__/1zhe/item-ewm-9k9.jpg">
    </div>
</div>

<!--导航end-->

<!--<div class="in_pop cf" id="show_regist_msg" style="display: none;">
    <div class="close_box"><a class="close_1" onclick="closeWin()" href="javascript:void(0);"></a>每日签到送积分</div>
    <div class="in_tex">
        <p class="pd_1"><b>签到成功，获得&nbsp;<em  class="sign_integral">0</em>&nbsp;积分和<em class="sign_cent">0</em>集分宝！</b>
            您已经连续签到<span class="sign_num">0</span>天，明天继续签到，可获得<em class="tomorrow_integral">0</em>积分</br>
        100集分宝=1元，快用集分宝去一折特卖购物吧~</p>
        <div class="pop-ewm"><img src="http://www.1zhe.com//static/home/images/pop-ewm-9k9.png" />
            电脑版已签到，客户端每天还可以<span class="cor1">再签1次</span>哦~<br/>快去下载并登录一折特卖客户端领取
            <span class="cor1">双倍积分和集分宝</span>吧~
        </div>
        <a class="btn_dl" href="http://www.1zhe.com/?m=prize&ac=index" target="_blank">积分兑换</a>
        <a class="btn_dl" href="http://www.1zhe.com/?m=prize&ac=getintegral" target="_blank">赚积分</a>
        <a class="btn_dl" href="http://www.1zhe.com/?m=prize&ac=lottery" target="_blank">去抽奖</a>
    </div>
</div>-->

<div id="show_regist_msg" class="nadd-pop" style="display: none">
    <div class="close-box"><a class="close_1" onclick="closeWin()" href="javascript:void(0);"></a></div>
    <div class="nadd-con tac">
        <div class="nadd-ico nadd-w2">
            <div class="nadd-t1">签到成功，获得<em class="cor1 sign_cent"></em>Z币！<br><a href="http://www.1zhe.com/apps.php"
                                                                                  target="_blank">去手机客户端签到还可获得<em
                    class="cor1">3-30</em>Z币哦</a></div>
        </div>
        <p class="pad5" style="color:#ff6666">连续签到7天分别可以获得到Z币：1、1、2、2、3、3、5。</p>
        <p class="mt10"><a href="http://www.1zhe.com/jifenbao/" target="_blank"><img
                src="__IMG__/1zhe/nadd-pop-img.png"></a></p>
        <p class="pad10"><img src="__IMG__/1zhe/pop-ewm-9k9.png"></p>
        <p class="pad5"></p>
        <p class="tal" style="width:500px;margin:0 auto;">友情提示：<br>1、1Z币=1集分宝=0.01元，可兑换集分宝、话费等。<br>2、您还可以去手机客户端签到获得3-30Z币哦~
        </p>
        <div class="mt10"><a class="nadd-btn" href="http://www.1zhe.com/?m=prize&amp;ac=lottery"
                             target="_blank">天天抽奖</a>
            <a class="nadd-btn" href="http://www.1zhe.com/?m=order&amp;ac=orderlogin&amp;f=user"
               target="_blank">订单抽奖</a>
            <a class="nadd-btn" href="http://www.1zhe.com/apps.html" target="_blank">去APP签到</a>
        </div>
    </div>
</div>

<div id="already_signed_msg" class="nadd-pop" style="display: none">
    <div class="close-box"><a class="close_1" onclick="closeWin()" href="javascript:void(0);"></a></div>
    <div class="nadd-con tac">
        <div class="nadd-ico nadd-w2">
            <div class="nadd-t1"><b>您今天已经签到过了<br><a href="http://www.1zhe.com/apps.php" target="_blank">去手机客户端签到还可获得<em
                    class="cor1">3-30</em>Z币哦</a></b></div>
        </div>
        <p class="pad5" style="color:#ff6666">连续签到7天分别可以获得到Z币：1、1、2、2、3、3、5。</p>
        <p class="mt10"><a href="http://www.1zhe.com/jifenbao/" target="_blank"><img
                src="__IMG__/1zhe/nadd-pop-img.png"></a></p>
        <p class="pad10"><img src="__IMG__/1zhe/pop-ewm-9k9.png"></p>
        <p class="tal" style="width:500px;margin:0 auto;">友情提示：<br>1、1Z币=1集分宝=0.01元，可兑换集分宝、话费等。<br>2、您还可以去手机客户端签到获得3-30Z币哦~
        </p>
        <div class="mt10"><a class="nadd-btn" href="http://www.1zhe.com/?m=prize&amp;ac=lottery"
                             target="_blank">天天抽奖</a>
            <a class="nadd-btn" href="http://www.1zhe.com/?m=order&amp;ac=orderlogin&amp;f=user"
               target="_blank">订单抽奖</a>
            <a class="nadd-btn" href="http://www.1zhe.com/apps.html" target="_blank">去APP签到</a>
        </div>
    </div>
</div>
<div id="pc_already_msg" class="nadd-pop" style="display: none">
    <div class="close-box"><a class="close_1" onclick="closeWin()" href="javascript:void(0);"></a></div>
    <div class="nadd-con tac">
        <div class="nadd-ico nadd-w2">
            <div class="nadd-t1"><b>一台电脑一天只能一个用户签到<br><a href="http://www.1zhe.com/apps.php" target="_blank">去手机客户端签到还可获得<em
                    class="cor1">3-30</em>Z币哦</a></b></div>
        </div>
        <p class="pad5" style="color:#ff6666">连续签到7天分别可以获得到Z币：1、1、2、2、3、3、5。</p>
        <p class="mt10"><a href="http://www.1zhe.com/jifenbao/" target="_blank"><img
                src="__IMG__/1zhe/nadd-pop-img.png"></a></p>
        <p class="pad10"><img src="__IMG__/1zhe/pop-ewm-9k9.png"></p>
        <p class="tal" style="width:500px;margin:0 auto;">友情提示：<br>1、1Z币=1集分宝=0.01元，可兑换集分宝、话费等。<br>2、您还可以去手机客户端签到获得3-30Z币哦~
        </p>
        <div class="mt10"><a class="nadd-btn" href="http://www.1zhe.com/?m=prize&amp;ac=lottery"
                             target="_blank">天天抽奖</a>
            <a class="nadd-btn" href="http://www.1zhe.com/?m=order&amp;ac=orderlogin&amp;f=user"
               target="_blank">订单抽奖</a>
            <a class="nadd-btn" href="http://www.1zhe.com/apps.html" target="_blank">去APP签到</a>
        </div>
    </div>
</div>


<!--<div class="in_pop cf"  id="already_signed_msg" style="display: none;">
    <div class="close_box"><a class="close_1" onclick="closeWin()" href="javascript:void(0);"></a>每日签到送积分</div>
    <div class="in_tex">
        <p class="pd_1"><b>您今天已经签到过了</b>明天再来，就可以获得<em class="tomorrow_integral">0</em>积分和<em >1</em>-<em >3</em>集分宝！</br>
        100集分宝=1元，快用集分宝去一折特卖购物吧~</p>
        <div class="pop-ewm"><img src="http://www.1zhe.com//static/home/images/pop-ewm-9k9.png" />电脑版已签到，客户端每天还可以<span class="cor1">再签1次</span>哦~<br />快去下载并登录一折特卖客户端领取<span class="cor1">双倍积分和集分宝</span>吧~</div>
        <a class="btn_dl" href="http://www.1zhe.com/?m=prize&ac=index" target="_blank">积分兑换</a>
        <a class="btn_dl" href="http://www.1zhe.com/?m=prize&ac=getintegral" target="_blank">赚积分</a>
        <a class="btn_dl" href="http://www.1zhe.com/?m=prize&ac=lottery" target="_blank">去抽奖</a>
    </div>
</div>-->

<div class="nadd-pop" id="sign_times" style="display: none">
    <div class="close-box"><a class="close_1" href="javascript:void(0)" onclick="closeWin()"></a></div>
    <div class="nadd-con tac">
        <div class="nadd-t1 mt20">您今日已签到多次，请输入验证码继续操作！</div>
        <ul class="nadd-yzm mt20">
            <li>
                <span class="ndp-txt">验证码：</span>
                <input type="text" id="sign_code" name="code" placeholder="请输入验证码" class="s_w2">
                <img id="code" src="" style="cursor:pointer;"
                     title="看不清，换一张" onclick="changeImg(&#39;code&#39;);">
                <span class="cor1 fs12" onclick="changeImg(&#39;code&#39;);">看不清，换一张</span>
            </li>
            <li>
                <span class="ndp-txt"></span>
                <span class="cor1 fs12" id="code_err">*请输入验证码</span>
            </li>
        </ul>
        <div class="mt20"><a class="nadd-btn" id="captcha_confirm" href="javascript:void(0)">确定</a></div>
    </div>
</div>

<!--今日上新-->
<div class="new_td cf">
    <div class="scr scr-new">
        <a title="" class=" xl-choose xl-c0 xl-12" href="http://www.1zhe.com/?order=12">优惠券<i class="xl-ico"></i></a>
        <!--二级筛选-->
        <div class="xl-tip xl-tip12" style="display:none"><a href="http://www.1zhe.com/?order=12">站内商品优惠券排行</a><a
                href="http://www.1zhe.com/?order=13">今日商品优惠券排行</a></div>
        <a title="按活动开始时间降序" class="" href="http://www.1zhe.com/?order=5">新品</a>
        <a title="按浏览量降序" class="" href="http://www.1zhe.com/?order=3">浏览量</a>
        <a title="按价格升序" class=" xl-choose xl-c0 xl-2" href="http://www.1zhe.com/?order=2">价格<i class="xl-ico"></i></a>
        <!--二级筛选-->
        <div class="xl-tip xl-tip2" style="display:none"><a href="http://www.1zhe.com/?order=2">站内商品由低到高</a><a
                href="http://www.1zhe.com/?order=9">今日商品由低到高</a></div>
        <a title="按折扣升序" class=" xl-choose xl-c0 xl-1" href="http://www.1zhe.com/?order=1">折扣<i class="xl-ico"></i></a>
        <!--二级筛选-->
        <div class="xl-tip xl-tip1" style="display:none"><a href="http://www.1zhe.com/?order=1">站内商品由低到高</a><a
                href="http://www.1zhe.com/?order=11">今日商品由低到高</a></div>
        <a title="按销量降序" class=" xl-choose xl-c0 xl-4" href="http://www.1zhe.com/?order=4">销量<i class="xl-ico"></i></a>
        <!--二级筛选-->
        <div class="xl-tip xl-tip4" style="display:none"><a href="http://www.1zhe.com/?order=4">站内商品销量排行</a><a
                href="http://www.1zhe.com/?order=8">今日商品销量排行</a></div>
        <a title="" class="on" href="http://www.1zhe.com/?order=0">推荐</a>
        <b>筛选：</b>
    </div>
    <div class="today-new">
        <!--<a href="javascript:void(0);" onclick="return addfavorite(this, document.title, document.location);" title="加入收藏"></a>-->
        <a href="http://www.1zhe.com/"></a>今日更新<i>54882</i>款
    </div>
</div>

<div class="n_box cf" id="goods_list">
    <ul class="n_ul">
        <!--单页商品列表-->
        {volist name="goods" id="vo"}
            {if $vo.state neq 0}
                <li class="goods_li">
                    <em class="ico_td ico_td2">今日<br>新品</em>
                    <table width="310" height="310" border="0" cellspacing="0" cellpadding="0">
                        <tbody>
                        <tr>
                            <td><a target="_blank" href="{$vo.url}"><img title="{$vo.name}" src="{$vo.imagePath}"></a>
                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="n_tex cf">
                        <div class="sy-text">
                            <div class="fr">
                                <img src="__IMG__/jd/jd.ico" style="width: 12px;"> 京东
                            </div>
                            <a class="good_title" target="_blank" href="{:\\think\\Url::build('Detail/index').'?id='.$vo.skuId}" title="{$vo.name}">{$vo.name}</a>
                        </div>
                        <span class="r_d1">
                            <!--<a href="{$vo.url}" target="_blank" class="ico-zyhq"></a>-->
                            <em></em>
                            <p>￥<i>{$vo.price}</i></p>
                        </span>
                        {if isset($vo.market_price)}
                            <span class="r_d2">
                                <em class="no_ctp"></em>
                                <span class="r_d3">
                                    <em class="price">￥{$vo.market_price}</em>
                                    <em>节省￥{$vo.market_price-$vo.price}</em>
                                </span>
                            </span>
                        {/if}
                    </div>
                </li>
            {/if}
        {/volist}
        <!--单页商品列表end-->

        <!--滚动优惠信息-->
        <li>
            <div id="index_subject" class="zt_class">
                {volist name="discount" id="vo"}
                    <ul>
                        <li>
                            <a class="zt_img" href="{$vo.link}" target="{$vo.target?'_blank':''}" data-sub="sub1">
                                <em class="zt_ico"></em>
                                <img alt="{$vo.title}" src="{$vo.pic}" style="width: 100%;">
                            </a>
                        </li>
                    </ul>
                {/volist}
                <a class="title" href="{$vo.link}" target="{$vo.target?'_blank':''}">{$vo.title}</a>
            </div>
            <!--<div class="tab">
                <a class="sub1" href="javascript:void(0);">1</a>
                <a class="sub2" href="javascript:void(0);">2</a>
                <a class="sub3" href="javascript:void(0);">3</a>
            </div>-->
        </li>
        <!--滚动优惠信息end-->

    </ul>
</div>
<!--今日上新end-->

<!--翻页-->
<div class="pag">
    <span class="p_prev">上一页</span>
    <a class="on" href="">1</a>
    <a href="">2</a>
    <a href="">3</a>
    <a href="">4</a>
    <a href="">5</a>
    <a href="">6</a>
    <a href="">7</a>
    <a href="">8</a>
    <a href="">9</a>
    <a href="">10</a>
    <a class="p_next" href="">下一页</a>
</div>
<!--翻页end-->

<div id="pop-app" class="pop-app" style="display: none;">
    <a href="javascript:" onclick="close_pop_app_tip()" class="dx"></a>
    <a href="http://download.1zhe.com/upload/app/android/1zhe_TeMai_2.4.6-baidu99_2_local.apk" class="az-btn"></a>
    <a href="https://itunes.apple.com/cn/app/id948506868?mt=8" target="_blank" class="pg-btn"></a>
</div>
<div id="index-video-pop" class="video-pop" style="display: none;">
    <a href="javascript:" class="video-close" title="关闭" onclick="closeWin();"></a>
    <a href="javascript:" onclick="showWin(&#39;index-video-embed&#39;)">
        <i class="video-i1"></i>
        <i class="video-i2"></i>
        <i class="video-i3"></i>
        <i class="video-i4"></i>
        <i class="video-i5"></i>
    </a>
</div>
<div id="index-video-embed" class="sp_pop" style="width:800px; height:475px;display:none;">
    <div class="sp_x"><a id="index-video-close" onclick="closeWin();" href="javascript:" title="关闭"></a></div>
    <div>
        <center id="video" style="width:800px; height: 475px;background-color:black;">
            <embed height="100%" width="100%" type="application/x-shockwave-flash"
                   pluginspage="http://www.macromedia.com/go/getflashplayer" allowscriptaccess="always"
                   allowfullscreen="true" quality="high"
                   src="http://yuntv.letv.com/bcloud.swf?uu=970effdcdb&amp;vu=1ed05045e6&amp;gpcflag=1&amp;lang=zh_CN"
                   base=".">
        </center>
    </div>
</div>
{/block}

{block name="style"}
<style>
    /*视频弹窗*/
    .dia_video {
        position: fixed;
        _position: absolute;
        left: 50%;
        top: 50%;
        margin: -256px 0 0 -450px;
        display: none;
    }

    .dia_video_close {
        position: absolute;
        right: 2px;
        top: 2px;
        z-index: 11;
        width: 37px;
        height: 37px;
        line-height: 999;
        overflow: hidden;
        cursor: pointer;
    }

    .sp_pop {
        border: 10px solid #42b2f2;
        position: relative;
    }

    .sp_x {
        position: absolute;
        top: -10px;
        right: -65px;
    }

    .sp_x a {
        width: 55px;
        height: 55px;
        background: url(https://static.1zhe.com/static/home/images/sp_x_e1.png) no-repeat;
        display: block;
    }
</style>
{/block}

{block name="script"}
<script type="text/javascript">
    $(function () {
        $(".item-scroll").udc_slider({
            contentCls: ".item-img",
            titleCls: "",
            navCls: ".item-btn",
            prevBtnCls: "",
            nextBtnCls: "",
            rollType: 1,
            auto: true,
            delayTime: 3000
        });
    });
</script>

<script type="text/javascript">
    // 筛选： 销量 价格 折扣 js
    $(document).ready(function () {
        $(".xl-1,.xl-tip1").mouseenter(function () {
            $(".xl-1").addClass("hover");
        }).mouseleave(function () {
            $(".xl-1").removeClass("hover");
        });
        $(".xl-2,.xl-tip2").mouseenter(function () {
            $(".xl-2").addClass("hover");
        }).mouseleave(function () {
            $(".xl-2").removeClass('hover');
        });
        $(".xl-4,.xl-tip4").mouseenter(function () {
            $(".xl-4").addClass("hover");
        }).mouseleave(function () {
            $(".xl-4").removeClass('hover');
        });
        $(".xl-12,.xl-tip12").mouseenter(function () {
            $(".xl-12").addClass("hover");
        }).mouseleave(function () {
            $(".xl-12").removeClass('hover');
        });
        //二级筛选js
        $('.scr .xl-1,.scr .xl-tip1').hover(function () {
            $('.scr .xl-tip1').css('display', 'block');
        }, function () {
            $('.scr .xl-tip1').css('display', 'none');
        });
        $('.scr .xl-2,.scr .xl-tip2').hover(function () {
            $('.scr .xl-tip2').css('display', 'block');
        }, function () {
            $('.scr .xl-tip2').css('display', 'none');
        });
        $('.scr .xl-4,.scr .xl-tip4').hover(function () {
            $('.scr .xl-tip4').css('display', 'block');
        }, function () {
            $('.scr .xl-tip4').css('display', 'none');
        });
        $('.scr .xl-12,.scr .xl-tip12').hover(function () {
            $('.scr .xl-tip12').css('display', 'block');
        }, function () {
            $('.scr .xl-tip12').css('display', 'none');
        });
    });
    $('.scr a').each(function () {
        var order_href = $(this).attr('href');
        if (order_href.indexOf('order=2') != -1) {
            $(this).hover(
                function () {
                    $(this).find('em').removeClass('arr_1').addClass('arr_1on');
                },
                function () {
                    $(this).find('em').removeClass('arr_1on').addClass('arr_1');
                }
            );
        }
    });
</script>

<script type="text/javascript">
    //    $(window).load(function () {
    //        var PopAppTipCookie = getCookie('PopAppTip');
    //        if (PopAppTipCookie == null || PopAppTipCookie != 'false') {
    //            showWin('pop-app');
    //        }
    //    });

    //关闭提示
    $(document).ready(function () {
        if ("" == 'first') {
            showWin('reg_success_3');
        }
        //首次访问首页弹出小视频
        var ShowIndexVideoPop = getCookie('ShowIndexVideoPop');
        if (ShowIndexVideoPop == null || ShowIndexVideoPop != 'false') {
            showWin('index-video-pop');
            setCookie('ShowIndexVideoPop', 'false', 3650);
        }
    });

    function close_pop_app_tip() {
        setCookie('PopAppTip', 'false', 365);
        closeWin();
    }
    function getCookie(c_name) {
        if (document.cookie.length > 0) {
            c_start = document.cookie.indexOf(c_name + "=");
            if (c_start != -1) {
                c_start = c_start + c_name.length + 1;
                c_end = document.cookie.indexOf(";", c_start);
                if (c_end == -1) c_end = document.cookie.length;
                return unescape(document.cookie.substring(c_start, c_end))
            }
        }
        return ""
    }
    function setCookie(c_name, value, expiredays) {
        var exdate = new Date();
        exdate.setDate(exdate.getDate() + expiredays);
        document.cookie = c_name + "=" + escape(value) +
            ((expiredays == null) ? "" : ";expires=" + exdate.toGMTString())
    }

</script>

<script type="text/javascript">
    //通用弹窗
    //收藏提示关闭或不再提醒
    function CloseNLRAF(a) {
        if (a) {
            $.cookie("NLRAF", "true", {path: "/", expires: 30});
        } else {
            $.cookie("NLRAF", "true", {path: "/"});
        }
        $(".sc-wrap").slideUp();
    }
    $(function () {
        if ($.cookie("NLRAF") == null) {
            if (!$(".sc-wrap").text().length) {
                var coll_html = '<div class="sc-wrap">';
                coll_html += '<div class="sc-topbar"><a class="sc-close" href="javascript:void(0);" onclick="CloseNLRAF(false)"></a><em></em><span>按&ensp;<b>Ctrl+D</b>，把一折特卖放入收藏夹，限时特价信息一手掌握！</span> <a href="javascript:void(0);" onclick="CloseNLRAF(true)">不再提醒</a></div>';
                coll_html += '</div>';
                $("body").prepend(coll_html);
            }
        }
    })
</script>
{/block}